// owner-app/pages/property/index.js
import {
  onlyChangeRouter,
} from "../../../utils/util";
Page({
  /**
   * 页面的初始数据
   */
  data: {
    sumWidth: 0,
    sumLeft: 0,
    autoplay: true,
    interval: 3000,
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {},

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {},

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {},
  onlyChangeRouter,
  handlerGobackClick() {
    wx.switchTab({
      url: "/pages/home/index",
    });
  },
  itemClick(e) {
    if (e.currentTarget.dataset.url) {
      let url = e.currentTarget.dataset.url;
      wx.navigateTo({
        url,
      });
    }
  },
});
